<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap-theme.min.css">
<script src="/bsc/js/common/bootstrap/js/jquery-3.1.1.min.js"></script>
<script src="/bsc/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
 <table border="0" align="center">
     <tr>
     <td style="padding-right:5px">手工费:</td><td style="padding-right:100px">${list2.mp }</td>
     </tr>
      <tr>
     <td >现金收入:</td><td>${list2.ci }</td>
     </tr>
      <tr>
   <td>消耗收入:</td><td>${list2.ei }</td>
     </tr>
     </table>

<hr>
<table width="100%" align="center" class="table table-striped" class="table table-hover">
<tr>
<td colspan="6">
<input type="button" value="导出Excel" id="exportExcel"/>
</td>
</tr>
<tr>
<td>姓名</td>
<td>职位</td>
<td>手工费</td>
<td>现金收入</td>
<td>消耗收入</td>
</tr>
<c:forEach items="${list }" var="list">
<tr>
<td>${list.username }</td> 
<td>${list.post_name }</td>
<td>${list.mp}</td> 
<td>${list.ci}</td>
<td>${list.ei}</td>
</tr>
</c:forEach>
</table>
<form action="" method="post" id="zhangnuo">

</form>
</body>
</html>
<script  type="text/javascript">
$("#exportExcel").on("click",function(){
	var url = "http://localhost:8081/bsc/proltal/zn1/Excel2";
	$("#zhangnuo").attr("action",url);
	$("#zhangnuo").submit();
});
</script>